#pragma once

#include "Includes\Component.h"
#include "Includes\SDefine.h"
#include "Tools\Serialization.h"

namespace SakuraAge {
class BoxCollision : public Component, public RefBase<BoxCollision> {
  friend class Component;
  friend class RefBase<BoxCollision>;

 private:
  BoxCollision();
  virtual ~BoxCollision();

 public:
  
  bool isTrigger;
  virtual void Serialize(SerializedStream& ss);
  virtual bool IsInside(const Vector2& position);
};
}  // namespace SakuraAge